"""ordermeal URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url

from myadmin.views import index, member, shop, product, order, user, auth, setup, ident

urlpatterns = [
    url(r'^$', index.index, name="myadmin_index"),  # 首页
    url(r'^member/(?P<pIndex>[0-9]*)$', member.index, name="myadmin_member"),  # 会员管理
    url(r'^member/update$', member.update, name="myadmin_member_update"),  # 会员信息更新
    url(r'^member/del$', member.memdel, name="myadmin_member_del"),  # 会员信息更新
    url(r'^member/orders$', member.orders, name="myadmin_member_orders"),  # 会员订单
    url(r'^shop/(?P<pIndex>[0-9]*)$', shop.index, name="myadmin_shop"),  # 店铺管理
    url(r'^product_type/(?P<pIndex>[0-9]*)$', product.mtype, name="myadmin_product_type"),  # 菜品管理
    url(r'^product_info/(?P<pIndex>[0-9]*)$', product.minfo, name="myadmin_product_info"),  # 菜品管理
    url(r'^orders/(?P<pIndex>[0-9]*)$', order.index, name="myadmin_orders"),  # 订单管理
    url(r'^users/(?P<pIndex>[0-9]*)$', user.index, name="myadmin_users"),  # 账号管理
    url(r'^auth$', auth.index, name="myadmin_auth"),  # 权限管理
    url(r'^setup$', setup.index, name="myadmin_setup"),  # 设置管理
    url(r'^ident$', ident.index, name="myadmin_ident"),  # 认证管理

]
